import Vue from "vue";
import $ from "jquery";
import moment from "moment"
import com from "../../utils/common";
import "../../utils/weui";
let editTime = {};
editTime.Temp = `
    <div class="activity_time_sel">
        <div class="activity_time_sel_weui">
            <div class="activity_time">活动时间:</div>
            <div>
                <input type="text" name='start_time' v-bind:value="timeselect.StartTime" id='start_time'/>
            </div>
            <p>到</p>
            <div>
                <input type="text" name='end_time' v-bind:value="timeselect.EndTime" id='end_time'/>
            </div>
        </div>
        <p style="text-align: center;">建议活动时间设置为5-7天</p>
    </div>
`;
let EditTime = Vue.extend({
  template: editTime.Temp,
  props: ["timeselect"],
  mounted(){
    $("#start_time").datetimePicker({
      title: "选择日期时间",
      min: "1970-12-10",
      max: "2050-10-01"
    });
    $("#end_time").datetimePicker({
      title: "选择日期时间",
      min: "1970-12-10",
      max: "2050-10-01"
    });
  },
});
export default EditTime;
